﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CheccCoverplateCulvertAssemble.Common.Total
{
    /// <summary>
    /// 挖方
    /// </summary>
    public class CommonDigSide : MyNotifyPropertyChanged
    {
        private bool _isDigSide;
        private double _earthStoneRatio;
        private double _edge;
        private double _slopeRatio;

        public CommonDigSide()
        {
        }

        public CommonDigSide(bool isDigSide, double earthStoneRatio, double edge, double slopeRatio)
        {
            IsDigSide = isDigSide;
            EarthStoneRatio = earthStoneRatio;
            Edge = edge;
            SlopeRatio = slopeRatio;
        }

        /// <summary>
        /// 是否干处挖方
        /// </summary>
        public bool IsDigSide
        {
            get
            {
                return _isDigSide;
            }
            set
            {
                if (value == _isDigSide)
                    return;
                _isDigSide = value;
                NotifyPropertyChanged(() => IsDigSide);
            }
        }

        /// <summary>
        /// 土石比例
        /// </summary>
        public double EarthStoneRatio
        {
            get
            {
                return _earthStoneRatio;
            }
            set
            {
                if (value == _earthStoneRatio)
                    return;
                _earthStoneRatio = value;
                NotifyPropertyChanged(() => EarthStoneRatio);
            }
        }

        /// <summary>
        /// 挖方襟边
        /// </summary>
        public double Edge
        {
            get
            {
                return _edge;
            }
            set
            {
                if (value == _edge)
                    return;
                _edge = value;
                NotifyPropertyChanged(() => Edge);
            }
        }

        /// <summary>
        /// 挖方坡比
        /// </summary>
        public double SlopeRatio
        {
            get
            {
                return _slopeRatio;
            }
            set
            {
                if (value == _slopeRatio)
                    return;
                _slopeRatio = value;
                NotifyPropertyChanged(() => SlopeRatio);
            }
        }
    }
}
